package com.margo.project.status;

import com.fasterxml.jackson.annotation.JsonFormat;

@JsonFormat(shape=JsonFormat.Shape.OBJECT)
public enum StatusEnum {
	
	SUCCESS(1, "成功"), START_RECORD_ENTRY(2, "开工已上报"), PLAN_DATE_OVERDUE(3, "只能处理当天的单据");

	private Integer code;

	private String message;

	private StatusEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
